package router

import (
	"database/sql"

	"gitee.com/hp-huiw/family-expense-api/internal/handler"
	"github.com/gin-gonic/gin"
)

// Sets routes for role resource.
func SetRoleRoutes(routerGroup *gin.RouterGroup, db *sql.DB) {
	h := handler.NewRoleHandler(db)

	routerGroup.GET("/query-non-system-level-roles", h.QueryNonSystemLevelRoles)
	routerGroup.GET("/query-all-roles", h.QueryAllRoles)
}
